package com.example.boot1.service.impl;

import com.example.boot1.bean.VueOrderRequestBean;
import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import com.example.boot1.bean.VueOrder;
import com.example.boot1.mapper.VueOrderMapper;
import com.example.boot1.service.VueOrderService;

import java.util.List;

@Service
public class VueOrderServiceImpl implements VueOrderService{

    @Autowired
    private VueOrderMapper vueOrderMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return vueOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(VueOrder record) {
        return vueOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(VueOrder record) {
        return vueOrderMapper.insertSelective(record);
    }

    @Override
    public VueOrder selectByPrimaryKey(Integer id) {
        return vueOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(VueOrder record) {
        return vueOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(VueOrder record) {
        return vueOrderMapper.updateByPrimaryKey(record);
    }

    /**
     * 输入条件查询订单
     * @param vueOrderRequestBean
     * @return
     */
    @Override
    public List<VueOrder> findOrderByCondition(VueOrderRequestBean vueOrderRequestBean) {
        return vueOrderMapper.findOrderByCondition(vueOrderRequestBean);
    }

    /**
     * 输入条件查询总工多少数据
     * @param vueOrderRequestBean
     * @return
     */
    @Override
    public int findAllTotalByCondition(VueOrderRequestBean vueOrderRequestBean) {
        return vueOrderMapper.findAllTotalByCondition(vueOrderRequestBean);
    }


}
